//
//  UsercenterHeadCell.m
//  Contacts
//
//  Created by 李 雷川 on 14-7-17.
//  Copyright (c) 2014年 李 雷川. All rights reserved.
//

#import "UserCenterHeadCell.h"

@implementation UserCenterHeadCell
@synthesize headImageView,changePhotoBlock,button;
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
    [headImageView setContentMode:UIViewContentModeScaleAspectFill];
    [headImageView setClipsToBounds:YES];
    [headImageView.layer setBorderColor:[UIColor whiteColor].CGColor];
    [headImageView.layer setBorderWidth:2.0];
    [headImageView.layer setCornerRadius:headImageView.frame.size.width/2.0];
    

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(IBAction)changePhoto:(id)sender{
    if (changePhotoBlock) {
        self.changePhotoBlock ();
    }
    
}


@end
